var name = "夏明";
var age = "5";
var flag = true;
function sum(num1, num2) {
  return num1 + num2;
}
if (flag) {
  console.log(sum(20, 30));
}

//1.导出方式一
export { flag, sum };

//2.导出方式二
export var num1 = 1000;
export var height = 1.88;

//3.导出函数/类
export function mu1(num1, num2) {
  return num1 + num2;
}
export class Person {
  run() {
    console.log("跑男");
  }
}

//4.export default 希望让导入者自己命名
// const adress = "北京市";
// export { address };

// export const address = "北京市";
const adress = "北京市";

//一个文件里边只能有一个default
// export default adress;

export default function (argument) {
  console.log(argument);
}
